//
//  CommonTools.swift
//  Weibo
//
//  Created by mac on 16/5/13.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

 let updateRootVCNotification = "updateRootVCNotification"

let screenWidth = UIScreen.mainScreen().bounds.size.width
//  获取屏幕的高度
let screenHeight = UIScreen.mainScreen().bounds.size.height


//  RGB颜色创建
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor {
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}

//  产生一个随机颜色
func RandomColor() -> UIColor {
    
    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256
    
    return RGB(CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255)
}






